package com.hrm.dto;


/**
 * @Auther: 朱晓龙
 * @Date: 2020/6/3 20:50
 * @Description: 员工薪酬DTO
 */
public class EmpSalaryDTO {

    private Integer id;

    private String name;

    private Integer salaryId;

    private Integer empId;

    private Integer payTime;

    private Integer salary;

    private Integer basicSalary;

    private Integer bonus;

    private Integer deduct;

    private Integer otherSalary;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getSalaryId() {
        return salaryId;
    }

    public void setSalaryId(Integer salaryId) {
        this.salaryId = salaryId;
    }

    public Integer getEmpId() {
        return empId;
    }

    public void setEmpId(Integer empId) {
        this.empId = empId;
    }

    public Integer getPayTime() {
        return payTime;
    }

    public void setPayTime(Integer payTime) {
        this.payTime = payTime;
    }

    public Integer getBasicSalary() {
        return basicSalary;
    }

    public void setBasicSalary(Integer basicSalary) {
        this.basicSalary = basicSalary;
    }

    public Integer getBonus() {
        return bonus;
    }

    public void setBonus(Integer bonus) {
        this.bonus = bonus;
    }

    public Integer getDeduct() {
        return deduct;
    }

    public void setDeduct(Integer deduct) {
        this.deduct = deduct;
    }

    public Integer getOtherSalary() {
        return otherSalary;
    }

    public void setOtherSalary(Integer otherSalary) {
        this.otherSalary = otherSalary;
    }

    public Integer getSalary() {
        return getBasicSalary() + getBonus() - getDeduct() + getOtherSalary();
    }

    public void setSalary(Integer salary) {
        this.salary = salary;
    }
}
